home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14500 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.mtholyoke.edu!ssubrama
  2. From: ssubrama@mtholyoke.edu (Sowmya Subramanian)
  3. Newsgroups: comp.lang.c++
  4. Subject: Help needed
  5. Date: 31 Mar 1996 03:57:04 GMT
  6. Organization: Mount Holyoke College
  7. Message-ID: <4jkvqg$k3m@news1.mtholyoke.edu>
  8. NNTP-Posting-Host: mhc.mtholyoke.edu
  9. X-Newsreader: TIN [version 1.2 PL0]
  10.  
  11. Any help regarding the following issue would be greatly appreciated:
  12.  
  13. I am coding in C++ and using MSVC 2.0.  I have several objects (for 
  14. instance, patient objects) stored in a file called patient.dat.  Now, I 
  15. need to be able to delete one of these objects from the file.  Is there 
  16. any library function that will delete a specified number of bytes from a 
  17. file, and also handle the space that has been freed?  Or, do I have to 
  18. explicitly use some mechanism (such as use pointers) that will go and 
  19. delete an object, and then reallocated that free space or do some kind of 
  20. compaction?  I hope my question is clear... if not, please ask me.  
  21.  
  22. It would be great if any of you can suggest some solutions for the above 
  23. problem - please reply to me (ssubrama@mhc.mtholyoke.edu).  Thanks a lot 
  24. in advance!
  25.  
  26. --
  27. Sowmya
  28.